package cn.lzm.feign;


import cn.lzm.AjaxResult;
import cn.lzm.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server", fallbackFactory = StoreFeignClientFallbackFactory.class)
public interface StoreFeignClient {

    @PostMapping("/store")
    AjaxResult addOne(@RequestBody Store store);

}
